package com.buba.system.service.impl;

import com.buba.system.dao.LoginMapper;
import com.buba.system.pojo.LoginLog;
import com.buba.system.pojo.Page;
import com.buba.system.pojo.SystemUser;
import com.buba.system.service.LoginService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@DubboService
public class LoginServiceImpl implements LoginService {

    private LoginMapper loginMapper;

    @Override
    public SystemUser login(SystemUser systemUser) {
        return loginMapper.login(systemUser);
    }

    @Override
    public Integer updpas(SystemUser systemUser) {
        return loginMapper.updpas(systemUser);
    }

    @Override
    public Integer addLogin(Map<String, Object> map1) {
        return loginMapper.addLogin(map1);
    }

    @Override
    public Integer delLogin(String employeeId) {
        return loginMapper.delLogin(employeeId);
    }

    @Override
    public Integer delLoginAll(List<String> list) {
        return loginMapper.delLoginAll(list);
    }

    @Override
    public void addLoginLog(LoginLog loginLog) {
        loginMapper.addLoginLog(loginLog);
    }

    @Override
    public String selLoginByEmployeeId(SystemUser systemUser) {
        return loginMapper.selLoginByEmployeeId(systemUser);
    }

    @Override
    public Long selLoginLogCount() {
        return loginMapper.selLoginLogCount();
    }

    @Override
    public List<LoginLog> selLoginLog(Page page) {
        return loginMapper.selLoginLog(page);
    }

    @Override
    public Long selLoginLogCountByName(Map<String, Object> map) {
        return loginMapper.selLoginLogCountByName(map);
    }

    @Override
    public List<LoginLog> selLoginLogByName(Map<String, Object> map) {
        return loginMapper.selLoginLogByName(map);
    }
    @Autowired
    public void setLoginMapper(LoginMapper loginMapper) {
        this.loginMapper = loginMapper;
    }
}
